package com.cskaoyan.service;

import com.cskaoyan.bean.ListData;
import com.cskaoyan.bean.Role;
import com.cskaoyan.bean.bo.AdminRoleVO;
import com.cskaoyan.bean.bo.PermissionBO;
import com.cskaoyan.bean.vo.PermissionFirstChildVO;

import java.util.List;

/**
 * @author heyyon
 */
public interface AdminRoleService {
    List<AdminRoleVO> options();

    ListData<Role> list(Integer page, Integer limit, String name, String sort, String order);

    Role create(Role role);

    int update(Role role);

    int delete(Role role);

    PermissionFirstChildVO permissions(Integer roleId);

    int permissions(PermissionBO permissionBO);
}
